﻿using System;

namespace ConsoleApp.Util
{
    public class AppSettingsConstVars
    {
        /// <summary>
        /// 
        /// </summary>
        public static readonly bool Debug = Convert.ToBoolean(AppSettingsHelper.GetContent("Debug"));

        /// <summary>
        /// 
        /// </summary>
        public static readonly string Error_Webhooks = AppSettingsHelper.GetContent("Error_Webhooks");

        /// <summary>
        /// 
        /// </summary>
        public static readonly string Webhooks = AppSettingsHelper.GetContent("Webhooks");

        #region 数据库================================================================================
        /// <summary>
        /// 获取数据库连接字符串
        /// </summary>
        public static readonly string DbSqlConnection = AppSettingsHelper.GetContent("ConnectionStrings", "SqlConnection");
        /// <summary>
        /// 获取数据库类型
        /// </summary>
        public static readonly string DbDbType = AppSettingsHelper.GetContent("ConnectionStrings", "DbType");
		/// <summary>
		/// 获取数据库连接字符串
		/// </summary>
		public static readonly string WriteDbSqlConnection = AppSettingsHelper.GetContent("ConnectionStrings", "WriteSqlConnection");

        #endregion


        #region Rmq

        /// <summary>
        /// Host
        /// </summary>
        public static readonly string Host = AppSettingsHelper.GetContent("RmqOption", "Host");
        /// <summary>
        /// Port
        /// </summary>
        public static readonly string Port = AppSettingsHelper.GetContent("RmqOption", "Port");
        /// <summary>
        /// VirtualHost
        /// </summary>
        public static readonly string VirtualHost = AppSettingsHelper.GetContent("RmqOption", "VirtualHost");
        /// <summary>
        /// Exchange
        /// </summary>
        public static readonly string Exchange = AppSettingsHelper.GetContent("RmqOption", "Exchange");
        /// <summary>
        /// UserName
        /// </summary>
        public static readonly string UserName = AppSettingsHelper.GetContent("RmqOption", "UserName");
        /// <summary>
        /// Pwd
        /// </summary>
        public static readonly string Pwd = AppSettingsHelper.GetContent("RmqOption", "Pwd");

        #endregion

        #region DingTalk
        /// <summary>
        ///钉钉推送地址
        /// </summary>
        public static readonly string DingTalkUrl = AppSettingsHelper.GetContent("DingTalk", "DingTalkUrl");
        #endregion

        

    }
}
